package com.es.pay.ctmPay;

import javax.servlet.http.HttpServletRequest;

import com.opensymphony.webwork.interceptor.ServletRequestAware;
import com.opensymphony.xwork.ActionSupport;

public class CreateCtmGradeDoAction extends ActionSupport implements ServletRequestAware{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	HttpServletRequest request;
	 
	   public String execute()throws Exception
	   {
		   CtmPayBiz biz = new CtmPayBiz();
		   String message ="";
		   if(biz.createCtmGrade())
			   message = "考核系数计算操作成功";
		   else
			   message = "考核系数计算系统原因，计算失败，请重新执行计算操作";
		   request.setAttribute("message", message);
		   return "success";
	   }
	
	   public void setServletRequest(HttpServletRequest request) {
		     this.request = request;
		   }
}

